using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace XiaoMan.Model.Models.Mapping
{
    public class Forum_Topic_CollectMap : EntityTypeConfiguration<Forum_Topic_Collect>
    {
        public Forum_Topic_CollectMap()
        {
            // Primary Key
            this.HasKey(t => t.CollectID);

            // Properties
            // Table & Column Mappings
            this.ToTable("Forum_Topic_Collect");
            this.Property(t => t.CollectID).HasColumnName("CollectID");
            this.Property(t => t.TopicID).HasColumnName("TopicID");
            this.Property(t => t.UserID).HasColumnName("UserID");
            this.Property(t => t.CreateTime).HasColumnName("CreateTime");
        }
    }
}
